package guoanmaker.operator.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import guoanmaker.operator.business.service.OperatorComplainServiceInterface;
import guoanmaker.operator.helper.common.AjaxJson;
import guoanmaker.operator.helper.common.abstractobj.ApiController;
import io.swagger.annotations.ApiOperation;
/**
 * 投诉类型表
* @ClassName: OperatorComplainController
* @Description:TODO (这里用一句话描述这个类的作用) 
* @author lihongyu
* @date 2017年8月3日 下午3:55:08 
*  
 */
@RestController
@RequestMapping(ApiController.OPERATOR_CITY)
public class OperatorComplainController {
	@Autowired
	private OperatorComplainServiceInterface operatorComplainServiceInterface;
	
 @ApiOperation(value = "查找所有投诉类型", notes = "查找所有投诉类型")
    @GetMapping(value = "getAllComplain")
    public AjaxJson getAllComplain() {
	 	AjaxJson ajaxJson=new AjaxJson();
        return ajaxJson.setSuccess(true).setStatus(200).setData(operatorComplainServiceInterface.getAllOperatorComplainByid());
    }

}
